<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title> - Lglspace‘s Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="lglspace" /><meta name="description" content="腾讯云服务器上安装docker备忘 https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker 1 yum install docker-io -y 背景 docker for windows could not read CA certificate 问题原因： 之前安装过 docker toolbox 解决步骤： 删掉四个docker 的环境变量 执行cmd" /><meta name="keywords" content="lglspace, blog, lgl" />






<meta name="generator" content="Hugo 0.79.0 with theme even" />


<link rel="canonical" href="https://lglspace.cn/%E9%9C%80%E8%A6%81%E6%95%B4%E7%90%86/%E9%9C%80%E8%A6%81%E6%95%B4%E7%90%86/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<link rel="stylesheet" href="/css/even-custom.css">


<meta property="og:title" content="" />
<meta property="og:description" content="腾讯云服务器上安装docker备忘 https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker 1 yum install docker-io -y 背景 docker for windows could not read CA certificate 问题原因： 之前安装过 docker toolbox 解决步骤： 删掉四个docker 的环境变量 执行cmd" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://lglspace.cn/%E9%9C%80%E8%A6%81%E6%95%B4%E7%90%86/%E9%9C%80%E8%A6%81%E6%95%B4%E7%90%86/" />

<meta itemprop="name" content="">
<meta itemprop="description" content="腾讯云服务器上安装docker备忘 https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker 1 yum install docker-io -y 背景 docker for windows could not read CA certificate 问题原因： 之前安装过 docker toolbox 解决步骤： 删掉四个docker 的环境变量 执行cmd">

<meta itemprop="wordCount" content="483">



<meta itemprop="keywords" content="" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content=""/>
<meta name="twitter:description" content="腾讯云服务器上安装docker备忘 https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker 1 yum install docker-io -y 背景 docker for windows could not read CA certificate 问题原因： 之前安装过 docker toolbox 解决步骤： 删掉四个docker 的环境变量 执行cmd"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Lglspace</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Lglspace</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
  <div class="post-content">
    <p>腾讯云服务器上安装docker备忘</p>
<p><a href="https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker">https://cloud.tencent.com/document/product/213/46000?from=information.detail.%E8%85%BE%E8%AE%AF%E4%BA%91%E6%90%AD%E5%BB%BAdocker</a></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">yum install docker-io -y
</code></pre></td></tr></table>
</div>
</div><p>背景
docker for windows could not read CA certificate</p>
<p>问题原因：
之前安装过 docker toolbox</p>
<p>解决步骤：
删掉四个docker 的环境变量
执行cmd命令docker-machine rm default
以管理员身份执行cmd命令
@FOR /f &ldquo;tokens=*&rdquo; %i IN (&lsquo;docker-machine env -u&rsquo;) DO @%i
————————————————
版权声明：本文为CSDN博主「一百个Chocolate」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
原文链接：https://blog.csdn.net/weixin_42429718/article/details/104234432</p>
<p>dockerfile的语法</p>
<p>构建镜像</p>
<p>docker build -t nginx:v3 .</p>
<p>docker pull alpine:3.13.5</p>
<p>git + hugo + （tech-blog）+ go生成的web服务，需要执行本地脚本</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">FROM alpine:3.6

MAINTAINER Yan QiDong &lt;yanqd0@outlook.com&gt;

ENV HUGO_VERSION=0.23 \
    HUGO_USER=hugo \
    HUGO_SITE=/srv/hugo

ENV HUGO_URL=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz

ADD ${HUGO_URL} /tmp/

RUN tar -xzf /tmp/*.tar.gz -C /tmp \
    &amp;&amp; mv /tmp/hugo /usr/local/bin/ \
    &amp;&amp; rm -rf /tmp/* \
    &amp;&amp; adduser ${HUGO_USER} -D

USER ${HUGO_USER}

WORKDIR ${HUGO_SITE}

VOLUME ${HUGO_SITE}

EXPOSE 1313

CMD [&#34;hugo&#34;, &#34;server&#34;, &#34;--bind&#34;, &#34;0.0.0.0&#34;]
</code></pre></td></tr></table>
</div>
</div><p>docker file 编辑器</p>
<p>go打包到不同平台</p>
<p><a href="https://blog.csdn.net/daily886/article/details/97527117">https://blog.csdn.net/daily886/article/details/97527117</a></p>
<p>Go to <code>~/.docker/machine/machines/default/config.json</code> and add your own DNS server into <code>HostOptions/EngineOptions/Dns</code> and restart docker machine.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-js" data-lang="js"><span class="p">{</span>  
   <span class="s2">&#34;HostOptions&#34;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&#34;Driver&#34;</span><span class="o">:</span> <span class="s2">&#34;&#34;</span><span class="p">,</span>
        <span class="s2">&#34;Memory&#34;</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
        <span class="s2">&#34;Disk&#34;</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
        <span class="s2">&#34;EngineOptions&#34;</span><span class="o">:</span> <span class="p">{</span>
            <span class="s2">&#34;ArbitraryFlags&#34;</span><span class="o">:</span> <span class="p">[],</span>
            <span class="s2">&#34;Dns&#34;</span><span class="o">:</span> <span class="p">[</span><span class="s2">&#34;192.168.99.1&#34;</span><span class="p">,</span><span class="s2">&#34;8.8.8.8&#34;</span><span class="p">,</span><span class="s2">&#34;8.8.4.4&#34;</span><span class="p">],</span> <span class="o">&lt;--</span> <span class="nx">set</span> <span class="nx">it</span> <span class="nx">here</span>
            <span class="s2">&#34;GraphDir&#34;</span><span class="o">:</span> <span class="s2">&#34;&#34;</span>
        <span class="p">}</span>
<span class="p">}</span>
</code></pre></td></tr></table>
</div>
</div><div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">docker-machine restart default
</code></pre></td></tr></table>
</div>
</div><p>nodejs ,nvm的使用</p>
<p>yarn global add @vue/cli</p>
<p>vue create bsmn-extention-study</p>
<p>vue add browser-extension</p>

  </div>
</article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:lglspace@outlook.com" class="iconfont icon-email" title="email"></a>
  <a href="https://lglspace.cn/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  

  

  <span class="copyright-year">
    &copy; 
    2020 - 
    2021<span class="heart"><i class="iconfont icon-heart"></i></span><span>lglspace</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.a74e82b84b872f6b028df4e965781ddbba1606f0253b4fad5e4cf3913cf576eb.js"></script>






<script src="/js/site-custom.js"></script>


</body>
</html>
